package com.share.hope.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.hope.entity.CommentInfo;
import com.share.hope.entity.result.R;

import java.util.List;
import java.util.Map;

public interface CommentInfoService extends IService<CommentInfo> {

    R<String> createComment(CommentInfo commentInfo);

    R<String> deleteComment(Long id);

    List<CommentInfo> getComment(Long postsId);

    Map<Long, Long> getCount();
}
